package com.dapeng.cleardatabackend.model.dto.user;

import com.dapeng.cleardatabackend.model.enums.UserRoleEnum;
import com.dapeng.cleardatabackend.model.enums.UserStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author dapeng
 * @description 用户权限更新请求
 * @date 2024/12/26 11:53
 */

@Data
@ApiModel(description = "用户权限更新请求")
public class UserUpdateAccessRequest implements Serializable {

    private static final long serialVersionUID = -378539961054497255L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "用户id不能为空")
    private Long id;

    /**
     * 角色
     */
    @ApiModelProperty(value = "角色")
    private UserRoleEnum userRole;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private UserStatusEnum userStatus;
}
